#ifndef IMSITABLE_H
#define IMSITABLE_H

class IMSITable {
private:
    sqlite3 * m_DB;
    sqlite3_stmt * m_imsilist_stmt;

public:
    IMSITable(const char * wPath);
    IMSITable();
    ~IMSITable();
    void preIMSIList();
    bool IMSIhasnext();
    wxString getIMSI();
    void stmtClose();
    void close();
    int delIMSI(const char* IMSI);
};

class SingleColDBI {
private:
    sqlite3 * m_DB;
    sqlite3_stmt * m_stmt;

public:
    SingleColDBI():m_DB(NULL), m_stmt(NULL) {};
    SingleColDBI(const char * wPath, const char * query = NULL);
    ~SingleColDBI();
    void prepareQuery(const char * query);
    bool hasnext() const;
    int runQuery();
    wxString getVal(int colidx) const;
    void stmtClose() ;
    void close();
};
#endif
